Replacing patch with inreplace

Implementing more of @mikemcquaid's feedback. Also got rid of the
--version test.