Use File::Spec instead of building paths manually

This change should fix a failing test in Windows smokers