[make-asoundrc.sh] add more logic for device detection