Fix command execution compatibility with Puppet < 3.4