add MAC helper variable
implement xdg base dir with separate functions
document get_win_dir function