Changing file.check_perms to only attempt to update permissions of a symlink if follow_symlinks is True.
Merge pull request #13914 from garethgreenaway/13910_recurse_symlink

Fix to file.check_perms related to symlinks and chmod