Refer to relative path instead of absolute 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?