More robust check of Puppet version

Signed-off-by: hajee <hajee@moretIA.com>