corrections to the puppet run check script