Use patch instead of git apply