Fix hide `cd` error when checking installation