Fix sync-js-ext-deps for node < 0.10