Fix dubious Cannot find GTK. make: *** [check-gtk] Error 1

Latest ubuntu and possibly other distros have GNU Make < 4.0 so they don't support BSD shell operator "!="

http://savannah.gnu.org/bugs/?31430

Updated to use the shell function instead which fixes the issue.