Try dirname instead