fix error occur when sourcing without brew installed