Fix regex that gets the siteversion

Getting only the first regex match and including .XX
also applying the same 1 line limit to $sitebranch.