Raspberry Pi getopt() error fix