normalize path so comparisons work