```ruby
require 'bundler'
Bundler.require :default

require 'rain/semantic_version'
require 'rain/config'
require 'rain/git_tools'
require 'rain/deployer'
require 'rails/all'

require 'pathname'
ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile", Pathname.new(__FILE__).realpath)

module Rain
  def self.version
    root_path = File.expand_path './'
    config = Rain::Config.new root_path
    config.versions
  end
end
```

Refactor config method, use Dir.pwd instead of File.expand_path('./')
user
```ruby
require 'bundler'
Bundler.require :default

require 'rain/semantic_version'
require 'rain/config'
require 'rain/git_tools'
require 'rain/deployer'
require 'rails/all'

require 'pathname'
ENV['BUNDLE_GEMFILE'] ||= File.expand_path("../../Gemfile", Pathname.new(__FILE__).realpath)

module Rain
  def self.version
    config = Rain::Config.new(Dir.pwd)
    config.versions
  end
end
```
assistant