Use $HOME

~/ is not an actual dir.