fix script for OSX .app