The cat heredoc inside cloud-init runcmd was indented, causing the
shebang line to become " #!/bin/bash" (with leading spaces) which
makes the script fail to execute as a proper interpreter.
Fixed by removing indentation from the heredoc body. Also improved
the error message to explain that the clone likely failed during
provisioning and show the manual clone command.
Added tmux kill-session before starting new session to avoid
"duplicate session" errors on re-run.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>