* fix bt if environment empty or absent
* fix tests
Merge pull request #4455 from giantlock/develop

some fixes in cmd module and tests