make sure the gen directory is present