validate: fix relative paths for test files
--set-test-file
would previously only work with absolute paths and set test_dir
incorrectly if used with a relative one.
--set-test-file
would previously only work with absolute paths and set test_dir
incorrectly if used with a relative one.