Always expand history file path (fix #1262)