core: cache makes proper path with slashes after "." [GH-716]