Support zsh, removing dependency on $BASH_SOURCE

In zsh, `$0` is equivalent to `$BASH_SOURCE[@]`.