Enhance the 'install' script so that it runs on OSX and Linux