Stop bash to cause syntax error.

Detect if the shell is bash first and let it return earlier before it
sees the zsh script part.