Fixes the publish script