Stop bash from causing syntax error.

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