tilde character expansion fix