correct chdir call