Handle edition dir names ending with "/" better.
This is continuation of the fix started in 5f35dfb4. If the edition directories end with a "/", this fix better handles the edition name determination logic. Without this, we get broken editions.
This is continuation of the fix started in 5f35dfb4. If the edition directories end with a "/", this fix better handles the edition name determination logic. Without this, we get broken editions.