fix d_path call in kernels < 2.6.25