Fix error for bash+git autocomplete. Thanks http://stackoverflow.com/a/15009611