Fixed dirname[2]