iwconnect: block until connection established
env: Add getenv

Signed-off-by: Andrew Andrianov <andrew@ncrmnt.org>