Try both rpm and dpkg when searching for OS dep

This seems reasonably to me. Any reason why it could cause havoc?

We try `rpm` first. Some systems will have both `rpm` and `dpkg` installed but the os packages will only be installed with one of them.
this changes the behaviour: up until now, `which` and `locate` were only used in case neither `rpm` or `dpkg` were used...