fix path error at brew command not installed