Run make in the git-root if possible
Don't set histappend shopt in old bash versions