dirs.c: added patch_fix()