Only require railtie if running in a Rails project