Fix ld-version.sh to handle large 3rd version part