test nginx config before proceeding with restart