Can you use IO#popen3 instead of backticks? Using backticks with interpolation is generally a bad idea.