try dirname