Fix infinite loop in #relative_from

* Infinite loop occurred when paths were identical
* Also improve handling of trailing slash in #cleanpath
Release 0.3.2