Use __DIR__ instead of File.dirname(__FILE__)