The argument to the file is the sql file you wish to fix, but the path must be relative to the location of the script.
Instead, allow it to be relative or absolute (start without ot with a /, respectively).
This would allow one to put the script in /usr/bin/ for example, then use it at the command line and pass absolute paths.
Also, if a relative path is passed, make it relative to the command line's pwd, not relative to the script.
Other than that, it worked perfect! THanks!