clean up redundant code
just export the extras; don't attach them to the built-in fs module
use Object.keys instead of Object.hasOwnProperty where possible