Better error message when ri is not installed. Fixes #243