fix typo and add check for existing swig template when scaffolding