Fix macos bug where sed resulting in wrong branch name.