defined?(Rails) workaround to build on travis