Rebuild application and fixing wrong Travis CI build