Fix failure to archive job history from folders