browserify-friendly monkey-patch of build