clean up log files for --job and --regtest
Merge pull request #513 from boegel/cleanup_logs

clean up log files for --job and --regtest