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.