Make any_loaded_file_changed() more reliable