Fixing relative directory bugs.