Alter with_puppet_running_on logic.

Only use initscript to restart if puppetservice is defined.

Signed-off-by: Wayne <wayne@puppetlabs.com>