Increment version strings in Linux Bash shell