Update the regex so the flavor is not required when doing release builds