Change working directory inside shell process