Do not overwrite version from GIT if it is older then defaults (cherry picked from commit 0344edf62dc49d822315a8d832f17be8d2c43643)