Fix install directory on Mac OS X
Merge pull request #910 from tom-tan/fix-install-dir-on-osx

Fix install directory on Mac OS X