Correctly check for puppet file type