using expanduser for home directory as that's more cross platform