Only run check_file_mode if mode is followed by =>