[PAXWICKET-433] Fixed critical cache dir location bug

(cherry picked from commit a82c6793ccea5c426bdb7e7cd55583daa9dd1eab)
Signed-off-by: Andreas Pieber <anpieber@gmail.com>