Remove trailing slash

`file-name-as-directory` doesn't need it to return the right thing, and
it's more consistent with other usage.