Don't use a custom titlebar outside of GNOME Shell

Using a HeaderBar as a custom titlebar doesn't work well with other DEs
like Unity, so only use a custom titlebar when GNOME Shell is detected.