fix relative-path on script generation