Rejiggering the way I patch require() to not be so intrusive. Created an example module.