Fix for lame pathinfo