fixed error when running build script with basic sh