Bug fixes to site build script. Add sidebar builder