If for some reason a random directory exists, remove it when installing an extension.