fix fileAttributes for Posix

fixup for #1751