introduce revert-patches and improve apply-patches

refs #21457 - makefile was adjusted too