fixed file permission check for super-users