gen dir bugfix

Signed-off-by: Markus Pargmann <mpargmann@allfex.org>