Minor: one extra debug message.
Add randomness to the log/script names to avoid collission