Naive implementation of fs.stat with jnr-posix