Refactored file installation of init command.

Removed code redundancy.
Bugfix: git tessera init did not work because of missing config file.