Fixing relative dirs in index