Universal test of unsetopt command

According to http://stackoverflow.com/a/7522866/189431 it should work in "bash, zsh, ksh and sh (as provided by dash)".
Merge pull request #322 from koenpunt/fix-unsetopt-test

Universal test of unsetopt command. Closes #300