More lenient PathHelper.removeDirectory