fix(console) change dir if current dir removed