Force tools_def.txt to be create and patch if not exists