Deleting the `.atsuo` files as Perkele mentions is a good first step in solving any kind of weirdness with Microchip/Atmel Studio. IME doing that has never caused a problem. You can also safely add them to .gitignore.
There may be a setting somewhere to control absolute vs relative paths, but I've definitely duplicated atmel studio projects before and not seen this, so just deleting the .atsuo/other transient files might be enough.
This sucks because all of the configuration you did in the GUI that was supposed to be helping you is basically lost. If you didn't take notes of every single change you made, you just are starting from scratch.
At least in Microchip/Atmel Studio (and Visual Studio, which the former is based on), all of that configuration is in plaintext in the project files. It might take a bit of work to extract it and port to a new build system, but it's not especially difficult to skim through and find most of the things that you would need to transfer. And if you're starting with a working IDE project, you can probably grab the automatically-generated makefile out of the build directory as a starting point. There are definitely some advantages to a non-IDE build system, but there's also a very large grey area as far as when it becomes the truly 'better' choice, depending on the project and the people working on it.