script: fix gen_bash_completion errors with the old perl version

The current script causes errors on debian squeeze.  This fixes it.

Signed-off-by: MORITA Kazutaka <morita.kazutaka@lab.ntt.co.jp>
Signed-off-by: Liu Yuan <namei.unix@gmail.com>