Adjust isFile validator.