Use relpath first, and then abspath.

This accounts for error reported w.r.t. the fix for ticket #56.