Match command name and file names