get rid of git_path in config and HgManager,  some minor fixes