Move file/dir related functions into file_system module
Fix unique_file
Remove depedency to time library