Strip off possible trailing slash in list output (seen on C:/).