Osx script cleanup.