Ensure we refresh media_dirs on reload