Order branch directories as version numbers

Relying on glob() to order the deployed versions doesn't work when there
are a mix of one digit and two digit versions active.

Change-Id: If2530281bdbbbb9744617b32504071f815c19a9f
Merge "Order branch directories as version numbers"