Fixed production script for osx