Fix regex when checking trunk