use correct precedence with `return $x || die`

The code used `return $x or die`, which means that `$x` is always
returned because `return` is higher precedence than `or`.

This was spotted by a new warning in perl 5.19.
Merge pull request #20 from rjbs/patch-1

use correct precedence with `return $x || die`