Fixing a case where you end up in an endless loop in certain scenarios by ensuring that we break out of the loop when the base path is empty.
Fixing a case where you end up in an endless loop in certain scenarios
by ensuring that we break out of the loop when the base path is empty.

hagleitn/Openstack-Devstack2,hagleitn/Openstack-Devstack2,mc2014/anvil,stackforge/anvil,mc2014/anvil,stackforge/anvil