Fix for prequisite generation (moved to before source globbing)

Signed-off-by: Frank Mertens <frank@cyblogic.de>