Fixed a bug that caused the script to crash on invoking --help