Extract Sophia version and save it in sophia_version