Be more compatible to other shells

This variant is equivalent on ZSH. But 'unfunction' does not exist on
other shells (namely Bourne and Bash), so this patch makes the plugin
more comaptible.