Preinstall script for Mac OS X