IGearClient.add accepts environment variables - fixes 568

Fixes #568 
This needs a unit test.