Fix function path for newer puppet

It seems you used puppet 0.24.x :)

New path works on >0.25.x (and is required in 3, I think)