tool: library: update the method for searching old .cfg files and scrapping its code