Unable to copy the report file when the job has been executed on a slave with a different OS

-The master receives only two strings with file name and absolute path relative to slave machine instead of java.io.File.
- See similar issue JENKINS-21467 found in SLOCCount plugin.