Two small fixes to the check script: Remove config file when done, make sure temp config file is not world readable.