move m_curDir to the parser class

Change-Id: Ib3cf15dfbb7af861a3c2fa8e746a0b0baaaa512e
diff --git a/src/parser_context.cpp b/src/parser_context.cpp
index c3b31c9..5766c2f 100644
--- a/src/parser_context.cpp
+++ b/src/parser_context.cpp
@@ -7,8 +7,8 @@
 */
 
 #include "parser_context.hpp"
-ParserContext::ParserContext(const CTree& tree)
+ParserContext::ParserContext(const CTree& tree, const std::string curDir)
         : m_tree(tree)
 {
-    m_curPath = m_tree.currentNode();
+    m_curPath = curDir;
 }