repo-patcher: fix patch and reset scripts