If a logdir has been set that directory should be provided rather than the directory from which the job was submitted (which is what the logdir defaults to).