added latest_version() function to common.sh