dpkg call fails on RHEL

Replace dpkg-based test with platform-independent test.

Closes-Bug: #1340164
Merge pull request #17 from CiscoSystems/bugs/1340164

dpkg call fails on RHEL