hack: fixed generation of dependency patterns