scripts/generate-template.sh: Remove tmp files unconditionally

It may happen that the if is false and it that case the files are not removed.
Just move the rm outside the if, so it's always removed and no garbage is left.