Build scripts: Fixed boolean logic