compare-puppet-catalogs: bugfixes, jenkins integration

Made the parameter parsing routines work better with jenkins and the
rest.

Signed-off-by: Giuseppe Lavagetto <glavagetto@wikimedia.org>
Change-Id: Iede3c5245c5db087960502674cf9c7109025ab8f