lua: fix issue #15: ev3dev.lua does not support sensor- nor motor-directories with a number higher than 9