has_found_directory always equalled an empty string so if nvim-old already existed it would fail to move to nvim-old-1 and would then fail when installing doom-nvim.
Added function to check whether doom-nvim is specifically installed in the config and, if so, backs the config up to doom-nvim-old. If doom is installed then the default backup_existing_config function doesn't run.
has_found_directory always equalled an empty string so if nvim-old already existed it would fail to move to nvim-old-1 and would then fail when installing doom-nvim.
Added function to check whether doom-nvim is specifically installed in the config and, if so, backs the config up to doom-nvim-old. If doom is installed then the default backup_existing_config function doesn't run.