fixes #109, removing comments from template file if optimize is used