Cope with output file including spaces in the path

Using implicit String to ProcessBuilder conversion is pretty dangerous IMHO.   Much safer to build a Seq[String] and use that.  Then there's no need to do things like wrapping the classpath in quotes.