Try to fix broken detection of gtk, wm, themes etc