Set correct dir context