[ADD]ed __dir__ method for Object for ruby < 2.0.0