I'm not running it from /Users/max/Library. It's expecting to find the files there for some reason. That's why when I place the repo files into /Users/max/Library it works slightly better. But then it hits the other bug I mentioned about it thinking it's on Linux.
Hopefully your friend can offer some debugging help and insight