Extract a getBuildPropertyFrom:matchingRegex: method

This new method can be called arbitrarily many times until we find a non-empty build property that can serve as a friendly device identifier.