rm bak and orig files created by do-patch

- fix another linuxism
stagefy