The report (and the output directory it is created in) is driven by JMeter itself - you can find the reference in the following section: https://jmeter.apache.org/usermanual/generating-dashboard.html#configuration
It looks like the property jmeter.reportgenerator.exporter.html.property.output_dir is the one that controls where the report is written? This is added to the user.properties file in JMeter, or in the <propertiesJMeter> section:
<propertiesJMeter>
<jmeter.reportgenerator.exporter.html.property.output_dir>outputdir</jmeter.reportgenerator.exporter.html.property.output_dir>
</propertiesJMeter>