Avoid spurious unused variable warning

Avoid spurious warning about a variable that was modified in another
scope and not used anywhere else. This can happen when e.g. appending to
a variable in a submodule or when overriding a setting with hardcoded
value for some toolsets.

Fixes #41.