Fix OSX app/ub scripts