Explicitly add `z' to `command_prompt' to avoid it running before `check_exit_status'.