Use dpkg-query to get cdh version facts

Change-Id: Iee5ae02f756d084855ff64dc41b52cbf7a5cc422