Fix gstreamer detection logic