Fixed behavior when doing a build with --no-prompt and missing --platform option.