ubuntu/debian scripts: better fix for gstreamer version detection