Fixed a rare bug in chdir