Create pkg cache dir when returning path instead of in sanity checks