Spelling error
Moved some git specific logic out of controller
Path issue resolved for root directory files