Refactoring code for Jelix shorcuts + use it for jCache file's cache_dir param