Handle install dir properly in build_kernel.