buildscripts/L-SMASH.sh: Add get_ver function.