Canonicalize cache paths