fix bug in make-macosx-app.sh with older shells