Directories were reported as read-only as soon as the effective uid didn't the match directory owner. Rewrite permission validation to properly support UNIX permissions. Does not support for Access Control Lists. Fixes #87