Updated build script and fixed bug
Debugging travis-only error