Respect days_to_keep and num_to_keep in build flow