Looser check on getFilename (hoping it makes HHVM happy)