Fix the Makefile of the template component

* The `rm' command must not crash if the files do not exist