fix config errors during upgrade

errors were caused by loop in upgrade/config
force trailing slash
remove double slash in path
clarification in config documentation