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.