Broke the list generation into a separate function

We can put however many syllabi directories into our files path
as we want, now, and it will take only a slight adjustment to
incorporate the new directory.

Signed-off-by: Elliot Voris <elliotfriend@gmail.com>