Implement OS.chDir

* Disallowed when multiple VMs are running concurrently as
  it would make many filesystem operations nondeterministic.
* Fixes #248.