outputdir fix for batch experiments