'tryCanonicalizePath': throw the correct exception type on Windows.