Update gem dependencies to get the latest minor bug fix version
Refactor repo_root method generation to require less code