CORE-6184: corrected a problem with Agave output files being stored in the wrong directory