node 0.6/0.8 FS api compat