auto_build: Fail rather than go into infinite loop