Find docks with other number as well

In Ubuntu 12.10, my ThinkPad X220 dock was “dock.0” in the
“/sys/devices/” tree. With Ubuntu 13.04, this apparently changed to
“dock.2”. The script would therefore un-dock all the time.