If using travis, we know which branch we're on. Otherwise get from git