add cd command (now passes all regular test cases)