fix not displaying invalid path for cd command

broke this by mistake