dpkg call fails on RHEL

Replace dpkg-based test with platform-independent test.

Closes-Bug: #1340164
(cherry picked from commit 47960d882e8b7a50a95e9033ba5398ef209d1463)

Conflicts:
	manifests/init.pp