Changed computation of distance to index - there's no detection of index position...
drwxr-xr-x - pmsm-control
drwxr-xr-x - simple-dc