Add a call to ToSlash to make paths behave well under cross-platform conditions, e.g. Windows.