Correct dirname.