fs: fix 'object is not a function' callback errors

Reviewers: @isaacs @TooTallNate