Added bugfix to avoid removing whole folders in case modman is not well-written, e.g. when having app/etc/modules/Testmodule.xml app/etc/modules/ in modman, install will work, but module update would remove the whole app/etc/modules/ folder without this fix