use error code instead of errno for detecting ENOENT, more standard

See https://github.com/tnantoka/connect-fs/pull/2