Add readdir/readdirSync support