Fix passing command line arguments in single-process mode., fix --workdir with single process mode and relative paths
Kind of accidentally discovered trying to figure out how to fix --workdir with qtcreator.
Also added an option to force reuse of the existing process for debugging this.
Edited by Martin Tobias Holmedahl Sandsmark