Strip slash to workaround weird os.path.dirname behavior.
Merge pull request #1 from fedora-infra/feature/workaround

Strip slash to workaround weird os.path.dirname behavior.