Avoid use of None as a path
history might not exist