Some update

Avoid to memorize in the bash session the value of *invalid_credential* to 1.
Added compatibility with zsh.