Fixed bug with -f in mk_kvm
Fix permissions on /etc/profile.d/postgres.sh