Support older perls that don't support //

Sadly my default perl doesn't support defined-or //, so here's my patch. It might be worth incorporating this into a future version, but doesn't merit a  release unto itself.