file_system : in `restoreEntry` for temp paths we need to consider files with no extension

fixes a bug where files with no extension were only considered as
directories;  now we first try to getDirectory and second try to getFile
for such paths; if both calls fail then the error propagates.