Don't use Allegro's for_each_file API

Replace for_each_file() calls with <dirent.h> POSIX API