is_store instead of is_dir
Fix refresh_stats when there exist obsolete stores