Use ~ instead of $HOME; tested that this works