dpkg call fails on RHEL

Replace dpkg-based test with platform-independent test.

Closes-Bug: #1340164
Merge pull request #1 from rickerc/bugs/1340164

dpkg call fails on RHEL