daemon: Fix debug-upload command if compiled without --enable-debug.