Fix invalid path in Global.properties and add release conditional to publish scripts