browserify transform to support require-dir