Handle login shell bash processes hence match $0 with "*bash"
Merge pull request #3322 from stoned/hacking-env-setup

Handle login shell bash processes hence match $0 with "*bash"