fix device_index implementation (#16)
fix device_index implementation (#16)

there is:
_path = dir + dp->d_name + '/';

in device_index we have to take into account the '/' character when
calculating index
ddemidov/ev3dev-lang-cpp