bash4 changes substitution/expansion of "~"