implements #6788 puppet scanner filter support

implements #6788 puppet scanner filter support

fixed typo in comment

added missing environment.rb code