Added automatic rebuild for task with output file setted and file not existing.