fixed build script again to simultaneously be windows and linux friendly