Fix build script for os x.
Merge pull request #438 from brendandburns/shell

Fix build script for os x.