Added better handling of log file open.
pilot-job-submit: rearranged code blocks to make the code more readable.
Added possibility to define an arbitrary WORKING dir (via the second (optional) parameter of pilot-job-get-output).
The user name has become the third (optional) parameter of pilot-job-get-output.
The manual is updated to be in agreement with the changes.