checkout: clean up half-prepared directories in --to mode