Add the possibility to use a dynamic file loader function

It is useful for handling file out of the TFTP root or, in my case
generate grub menus dynamically.