Improve import_from_dotted_path error message

* Avoid exposing `rsplit` implementation detail in exception message.
* Fix #28.