Fix hostname parsing for build_run.sh state