Fix bug when Zotero is run in detached mode.