Add an error message to cdup if the directory isn't found.

My prompt displays error codes for failing commands, so I never really
noticed that this was an issue before, but obviously if the command
fails, it should report something.