updates #3: Bug fix.

Issue was with creating temp file. Java provides system temp files
with file-separator at the end on some platforms, and on others
without file-separator. Work around was implemented.