fix relative directory thing, sort of.