-Fix infinite looping in is_rails_file for linux and mac