Normalize path to avoid retrieving parent paths when the path contains ..