Fix for merge-base command

this fixes #575