Added chdir
Merge pull request #3 from cl-aaron/master

Added chdir