Glob paths from main section (Fixes #19)

This fix basically changes the order of some lines to allow glob.sync() to also glob paths in infos.main.

I hope this is generic enough to work with other packages