fixed file perms checking