Fixed to open nerdtree only on gui mode