Apply path correction to correct argument
This fixes running OpenCL tests under Valgrind, by applying the path transformation to the argument that the original command turned into.
It would be nice to have a cleaner solution here that doesn't depend on text substitution, but as long as there is no OpenCL test named "valgrind", this should work.