fix basename of files