Stop build script if invalid arguments are provided