Fixing scope problems for puppet 3.4