fix relative paths for resources