avoid exception on display of preferences dialog which prevents it from ...

On a normal mac, the preferences dialog works fine. On my mac it didn't show up when I tried to display it. Maybe it is because I'm using macports. But after handling/ignoring exceptions in the `possibleToolLocations` function, it also worked fine on my machine