bash: Use ~ instead of $HOME

For consistency with previous functions.