Added "dirname" directive.