Modified main scan and upload code to be an infinite loop, periodically polling
for new files. I looked into using inotify events, but these only work if the
filesystem is local. In my case, the job running ScanServer will mount the
directory over NFS, so no inotify events are visible.