Fixing the git path, and parameter reading

Avoid return where not required for flow of control.
https://github.com/bbatsov/ruby-style-guide#no-explicit-return