BUG: Make sure outdir is not ignored unnecessarily on manual saving of result file.
Closes #707 Implemented behaviour is to ignore the filename's path information when outdir is specified, and thus store "[path]/filename" as "filename" in outdir. If outdir is not set, then the full path in filename is used.