Bash Shift Count Out Of Range