remove trailing slash from completion candidates