fixed serve.sh for when nginx was not yet running (i.e. when restart does not work)