Make autocomplete daemon work on Linux/OSX