fix race condition

forward-port https://github.com/remind101/nginx-buildpack/pull/2