adding an option for an OUTPUTDIR env variable