Artifacts now automatically release to BinTray. Cleanup error messages. Better check for state of repository before executing rest of script.