Changed serach order chdir() and _chdir()