Improve compatibility of device detection.

This utility was originally developed on CentOS, and it turns out
the way I was detecting USB devices didn't work on Fedora, at least
by default. This commit switches the detection to use a more flexible
approach.