Sync sanity path checks to the modified configure paths.
(cherry picked from commit ff461c0beecb1a7409e6819809440fa8d87ec236)
Improve some printouts.

Specifically the one from ,rr.  Also make ,switch syntax error more
friendly.  Also, test for the recent xrepl fix, including its printout.
(cherry picked from commit e311de0522318329a86669bf096d8ae75b085402)