fix log command, improve multiple file handling, use . for all files
unless rm or c, handle renamed files