command_util: grep source files only once.