Fix hanging when opening a non-BackgroundBrowser.

When $BROWSER is set, its value is used instead of BackgroundBrowser('xdg-open'). This causes pithos to hang because it is waiting on a process that has already been waited on. This fixes the issue by only waiting if the browser used is a BackgroundBrowser.