platform/freertos/mkhalh: fix and clean up error handling

The output file is deleted by the Makefile, not by mkhalh. The latter also
used a variable that no longer exists.
platform/freertos: include name of generator and input in "edited" files