Fix version parsing on debian-based systems