fixed cd to not crash if directory doesnt exist