Use __dir__ instead of File.dirname(__FILE__)