drop trailing slashes when completion