Added dose patches for portable /tmp directory and quoting criteria for external solvers.