correctly handle paths that don't end with /
increment version number