Better "GO" detection

Current release doesn't recognize a "GO" statement if it's located on the first line of a script.

This fixes this issue along with adding some more test coverage