Move some file creation code from main to utils

As part of engine creation, we create files for audit and repair cfg.
Move this to utils.

Change-Id: I9d5075cb854ab5585fddcb58013ffa2530add970
Merge "Move some file creation code from main to utils"