renamed zip_directories_cache wrapper to more general "lru_cache"
added helper functions for rar support