DEPL-7184 Publish generated file fails to use correct path to file when running Jenkins Master/Slave

File path was being resolved on master instead of slave resulting in wrong path.separator
in mixed unix / windows master - slave configurations