Modify curl_form_data utility to use %x instead of sh

When we use 'sh', which is rake-specific, objects that don't have access to
rake methods can't use curl_form_data. Here we replicate sh by printing the
command and executing it with %x instead.

Signed-off-by: Moses Mendoza <moses@puppetlabs.com>