Implement chdir()

Adds chdir(2) in a straightforward way. Fixes #13.
Merge pull request #14 from BanzaiMan/feature/chdir

Implement chdir()