Imported: template command from paradise repo.
Fixed: new lines printed during colorize
Fixed: empty files no longer created during error