replace defined-or operator to improve compatibility with older perl (issue #30)

replace defined-or operator with pre-perl 5.10 equivalent to make us
compatible with older Perls