fix relative paths when deamonized