preparation for separated build trees

* computing of physical paths according to resource types