Properly infer build options and target names when collecting package build settings without a configuration.

Also don't assert when a "targetType": "none" package doesn't have a target name.