Making generated gemrc configurable with environment variables, refactoring the rubygem updates