Minor fix, rewriter init() code was in wrong place.
Now checking that file actually exists before attempting to re-write it.