Working version of dmenu_cache