You can call `cd` without a block; perhaps just do that only if `build.head?`.