Updated unix script to be compatible with OSX