Fixing error when there is no .directory_history file yet