basePath will be set even if only one file is used to provide specification

When a single file is used to provide the specification information, isApi is set to true.  This causes basePath to not be set, and results in it being blank (undefined) for the swagger-ui.

The code modified is only called from the top level code and therefore should not have any ill effects.  buildFrom1_1Spec was also updated.