Backported improved sanitization/quoting when calling external solver from dose

Now make sure quoting of arguments to external solver works no matter which version of aspcud we use...