Modify FileUtils' getFile Name function. Now the code is shorter.
Previous commit also add function that delete temp files before progrom exits.