Make history file location more cross-platform friendly.