Fixed wrong path when copying a file from the jar and added a FileNotFoundException if the the inputstream could not be opened because there is no such file.
Delete files of older generation processes and create all the needed files.