Fixed issue with file name cleanup when running from a jar file.