shorten_path: regenerate hash cache file automatically