fix for https://bugzilla.redhat.com/show_bug.cgi?id=1026293, removing trailing slash