Fixed some issues with running in a Vagrant vm.