[JENKINS-22114] CPPCheck - when looking at the source code of an error -...

... the latest source is used

- The files with source code were copied to the build directory only for builds on slave machine. Builds on master didn't copied any file and workspace files (with all updates) were shown for historical builds too. The code updated to always copy all neccessary files to the build directory to provide the current code even after it is updated in future.
- Code for displaying of latest workspace files is still present, it is mainly for backward compatibility.
- Condition "if directory doesn't exist, *delete* and create it" fixed - unneccessary/incorrect delete part removed.