add -t and other new options

Make functionality closer to that in Linux. Add tree (-t) option. Add
version (-V) option. Add nonstandard parentheses (-p) option to take
advantage of Mac listing of manufacturer name. Fix some broken logic.
Send help output to stderr instead of stdout. Avoid use of temp file.