added a fallback to unset MAVEN_SETTINGS_OPT if none of the settings.xml conditions are met. also added a test