[[NXCM-4485] Make possible to specify temp dir to be used to create p2 agents

https://issues.sonatype.org/browse/NXCM-4485