fix relative paths and adjust to the new dynamic target system