bug fix for issues raised in change 76486 (ported from core)

* adopt version.py in order to solve win compatibility issues (remove 'cat' and 'wc')

Change-Id: I2e979cb6d02f777fbd2e042ecfed1f32cee45695