compatibility with puppet 2.7
code improvement for puppet version check
Merge pull request #29 from artem-sidorenko/puppet_2_7_compat

compatibility with puppet 2.7