Modified build script to be OS based