fix race condition

I'm experiencing occasional failed deploys when nginx crashes because it couldn't open the logs.