fix patch

Fixes #192. Wasn't sure how to use `with_sys_path`?