Refactor SonarManager

Please ```checkout``` to the specified branch when the repo has been already cloned.