allow codeWriteSync to optionally overwrite existing files