Bash - Sum of Digits