Some relative directory bugfixes.