Fix extractVersion function.
Merge pull request #1274 from AnalyticalGraphicsInc/fixSafari

Fix extractVersion function.