Fix bug while detecting dependencies on Debian/Ubuntu systems, iff rpm is installed

This fix a corner case with
https://github.com/ajdecon/easybuild-easyconfigs/commit/d143572f181957cb0db21fb2af817721058ce7fc