Fix composer.json branch aliasing

Fixes #1249.