Fixes to resetHDA.sh