We can also check if config/application.rb is there or not (Padrino doesn't have this file)  and based on that determine if app is Padrino or Rails.