Make sure chdir and mkdir pass on their return value.
Fixed up mkdir_test because rmdir does not clean up recursively.
Added return code checking to mkdir_test.
Added chdir_test.
Merge pull request #8 from joechung/master

Make sure chdir and mkdir pass on their return value