add KDIR to patch line