fix Mac OS X run script
Merge pull request #677 from LipuFei/fix-mac-run-script

fix Mac OS X run script
fix Mac build scripts