Fix test on windows by pre-expanding path.