#737389 emacsen-common: incorrectly handles dependencies during emacsXX upgrade