Fix _autoenv_get_file_upwards for older Zsh