using ActiveSupport::Dependencies to build directories for rails compatility.