Raise exception when cannot find configuration.

Fixes #1645.
I'm not catching any errors from `resource_string` because I want to see exactly what the error says when it is raised.