stubbing pathname when cache dir is param