fix get_sites for 4.0.0
separate public dir making from building
site name cannot be assets
fix update_site_config
Merge pull request #418 from pdvyas/agent-fixes

Fixes for getting agent working