Update alternatives.sh to allow more alternatives

If more alternatives are set, the script will not fail.