utils: improve the file grep