Added follow_symlinks kwarg to file.check_perms