fix a bash bad style: unnecessary echo and command substitution