Allow setting IP from env var; handle spaces and tags.

Signed-off-by: Frank Kotsianas <fkotsian@pivotallabs.com>