Fix for deprecated util.exec.

Util.exec is deprecated, and callbacks aren't triggered correctly. Problem can be reproduced by specifying an output file. The output file will only have "null" in it, regardless of source format.