Fix bug where bootstrapclient would not generate correct URLs when opts....

...environment is not defined