v3: repair RUN-before-FROM injection bug (commons.py ensure_output_dir_in_dockerfile inserted at idx=0 when no WORKDIR exists). v2 had 99.5% infra fail; this fixes 85 of 199 Dockerfiles. 0cd2424 verified penfever commited on 12 days ago