Update exportPathOnce function to fit for zsh