Fixed bts binary name detection
Better default environment specification