* bash/env: improve machine detection