remove useless directory variable