Fix argument parsing without script

Hi, Merry Christmas, Happy Holidays, etc.

This fixes a subtle bug with argument parsing that would occur when no explicit build script was passed in. Please see the commit comments for details.