fix pathinfo