Make git repository more cross-platform
Fixed version number handling for old RG versions

(really old ones)