Improving mailing of logfiles in run-scripts
- make mailing of logfiles possible for ordinary users
- improve messages
- use secure tempfile