Test for undefined variables in a Puppet 2.x/3.x friendly way