added parameter statedir for easier configuration

Hello,

I have added the parameter statedir for easier configuration to check_puppet. It simply changes all the file paths to statedir + filename if set.

Regards,
 Dirk