Modified the updater function to cache the file list as directory traversal is super slow

This now occurs after 5 seconds have elapsed, rather than on every call.