Git: make rebase safe on OS X