Bug 991853 - Use a temporary list of directory links

https://bugzilla.mozilla.org/show_bug.cgi?id=991853