[WFCORE-178] :  ContentRepositoryImpl should not call File.deleteOnExit

Using the new Path API instead of File.
Cleaning empty old directories.