Rearrange the check for "-" as a file