Modified framework script to work with current version of OSX