fix issue #9: failing to set correct posix permissions

fixes https://github.com/perlundq/yajsync/issues/9

detect if we support POSIX file permissions and if so use
PosixFileAttributes instead of BasicFileAttributes to correctly
determine the current permissions. Use this information in the
Receiver to update the permissions if necessary.