Updated cd command and fixed bad command handeling.