Do not reinstall dev packages on upgrade when package names are specified

Fixes #1001. Thanks for reporting !