Refactor NSISWriter to make template filling easier