invert error check for POSIX filesytem functions

Fixes #104