Test if the file should be chmod'ed