Better Way to detect and change nginx.conf