[posixdirectory] fixups
Merge pull request #4860 from mkortstiege/posix_fixes

[posixdirectory] added missing code