Prioritizing bundledDeps over bundleDeps

Small fix of #2833