Better OS X support for postinstall_setup.sh