strip trailing slashes from doins arguments

Without stripping slashes subdirs aren't created properly in all cases,
e.g. dev-vcs/gitolite-3.6 fails to install due to this.