Refactor install using file templates