implementing get_puppet_version and using it in parse_catalog