ide: factor out completion of taskfile from ide_end_drive_cmd()