Fixed CI scripts giving erroneous pass to builds