Fix "refresh" failure with moved files (bug 11661)