Fixing caching issue.

 * Cache path is not being set if the command is executed
   at load as it is cached. Fixed it by calculating every
   time it is necessary.

 * Cache path is only available in st3 so using packages_
   path instead.