[fix] handle '..' in cd