Support domain change from env value

This PR improve tool to support custom domain name for staging app.