updated script for MacOSX install