Added 'deploy_script_extra' option, copied from pull request #78