Fix command execution compatibility with Puppet < 3.4

Closes GH-252