Fixed -n checks when building all images.