Convert backslashes when opening directory

Otherwise there'd be both a slash and a backslash version in the recent list later on.