Updated build script to be cross-platform compatible
Possible fix for the enviornment issue - Error: Unexpected end of key/value pairs