Make escaping compatible with Puppet 2.7.13 and 3.2

As we make the move towards Puppet 3.2, I am hoping to ensure compatibility between both
versions of the code, so that once the code is ready (and still works with Puppet 2.7.13), the upgrade will be as simple as using the new version of Puppet without having to simultaneously edit multiple repos.

This patch represents the first attempt to patch things in a way compatibile with both versions. 

The way that shell escaping works in Puppet has changed
in the version 2.7.14.

This commit adjusts the Puppet code that it will be compatible
with all versions > 2.7.x.