Determine relative paths using absolute paths

In some cases it was impossible to determine the relative paths between
two directories if those directories were not absolute paths.