[3.8] Fix binary version detection on debian system