fix: small changes to allow seamless install in VM or chroot