Trim trailing slash on dirPath

I couldn't get versionator working right away because I was passing a path with a trailing slash (eg ``public/``) to the ``dirPath`` parameter.

Small fix to trim the trailing slash before continuing.