Fixes to absolute path handling.
Bring over changes from Cython version.