[dirname] print missing operand message to stderr