script: Fix the gpio script for bit > 9