Revert "Fix unused return value warning for chdir()"
Merge pull request #504 from samaelsacred/revert-498-master

Revert "Fix unused return value warning for chdir()"