sleep before creating pidfile if wait for erlang is unset