Fix permissions check in services

If target file is symlink, permissions is checked on linked file (not on
symlink itself)

Affected services: fs_home, k5login and passwd_scp