This only runs in a very specific case on the Enterprise hub, so I think it's OK as is.  I actually just added an extra chown there too to avoid a race condition.