Adding fix for building in non chroot envs