only chown repo if NODE_ENV defined