Is there a way to make julia aware of ~ as the home directory on linux

Ah, true.

But that means it won’t necessarily work on other operating systems. Good to keep in mind.