cd absolute path undefined handling
Added absolute and relative dir support