Check the env var to create the base URL

/to @ritch 
/cc @chandadharap 

https://strongloop.atlassian.net/browse/SLA-739