remove duplicated code

remove duplicate code we determine the relative Path already at line 192