With construction workers scarce, homebuilders turn to robots, software