Fixed bug where directories were not getting deleted when removing an
old project template.