Shell checks that chdir exists