fix bug when run 'bash -x brew' under dir where brew script in.