fix track remote/branch pattern match
fix track condition check