Fixes to generated config file and deploy directory