Refer to absolute path instead of relative path

There is no need to refer to the absolute path here if we can use the relative one.

@DeepDiver1975 Please take a look. THX!
@karlitschek Backport?