Fixed running tests on Windows

Tests specified by an absolute path on the command line and tests that
reference relative resources now work on Windows. Also fixed the path
resolution of tests to work correctly when using the prefix and server
options.