Correct computation of relative target paths.