fixed #25

see https://github.com/jwerle/fs.c/pull/14

/cc @stephenmathieson