phase2: fix relative paths for scripts and files