Re-wrote finding dongle code for unix