Fix absolute paths lookup as in #91

This now includes all the relevant test files as well. As per the failed attempt in #102.