Make the build script compatible with Linux and OS X as well