svmgraph: get rid of helper play functions

do it all in C with popen()