Fix error in updating config file.
Add git branch and version hash in program output.