Add a regex check for old_build_version

Change-Id: Iefc11b498682e168e87baae6a7dfa5c1f85de73f