Fixed the name of the bintray task in the travis file.
Added task ordering rule so that incrementing of the version is done after bintray upload. This way, when upload fails, the version is not incremented.