Fix detecting global menu bar on Ubuntu

According to https://github.com/atom/atom-shell/commit/ae76657e17a32dba1a8da22e63ee8d76b1ae418c#commitcomment-8202603, we should decide whether use global menu bar by checking whether bus name "com.canonical.AppMenu.Registrar" is available.