dynamically determine dirs containing files to be loaded