Fix traceback in solaris package installation
Make file.check_perms properly manage symlinks

This makes this function properly chown the symlink itself if
follow_symlinks=False.
Add follow_symlinks parameter to file.directory state