Fixed logic for new composer behaviour of referencing tags instead of branches

Failed due to trying to get a dependency for "dev-3.0.6-rc2"