packaging:  Work around bash/expr match change in Fedora 19.

Not sure if old bash logic was wrong or not, but it will not work
in Fedora 19.  Use a different method of accomplishing the same thing
that seems to work everywhere.

Signed-off-by: Ben Greear <greearb@candelatech.com>