Fix url-dependencies test on Windows.

Need to change directories before deleting it.