This is the problem:
./get_hardware.expect $HOST $USER $PASS > $DIR/$HOST .
In shell scripting you always want to quote your variables, unless you understand precisely when to not quote them.
./get_hardware.expect "$HOST" "$USER" "$PASS" > "$DIR/$HOST" .