fixes error in edit history locating function when there's white space in path