Remove useless directory test