fix a bug about ~ on debian