remove duplication between unix and windows bootstrap context by

putting it in the BootstrapContext::Base class