Test for github issue 1842: handle relative paths correctly on Windows.