fix to recognize build failure with travis ci