Split getversion_svn into two utility functions

Change-Id: Ifde44b119a5429b81a9eb7643c1c94dbfdbeaa09
Merge "Split getversion_svn into two utility functions"