changed nginx check file
added conditions for checking nginx configuration