OSX script cleanup