Replace slashes in random with s, and create the log dirs