[#46] Remove the tempfile created by the command

Add `os.remove` commands to remove the temporary file created by the cron command.