Changed rails app check to skip all other types of application