consistently use ~ instead of $HOME