simplify tmp file deletion for command converters