Device index now works regardless of kernel version
(matching numbers at the end of device using regular expression)