Strip slashes from end of path. Fixes #85

Nix doesn't accept paths that end with a slash, so we need to remove the
slashes.