change method in_rails_application? to check if gemfile exists and if it uses rails