Add pipe stub, modified chdir