[zsh] Make the configuration loading more stable & cross platform