Replace HOME with ~, not the other way around