Clean iRODS paths to not have trailing slashes.

iRODS considers paths ending in a forward slash to be invalid and throws an
error.

Fixes #464.