Truncate activate file before re-writing it.