Corrections to helper script.

Signed-off-by: Giuseppe Lavagetto <glavagetto@wikimedia.org>