make history.file support ~/ prefix
make driver dirs support ~/ too