Fixed install script and added osx variables