Minor fixes to postinstall.sh