add that in main it expandsuser, instead of "~"