Modified publish script to allow quills to override the global settings.