Refined bash proxy handling.

Signed-off-by: Sean V Kelley <seanvk@ortracks.org>
Merge branch 'master' of github.com:seanvk/bash