Added switchable nginx service path

Added switchable nginx service path for users who do not allow passwordless access to the full service scripts for their deployment user, but rather limits passwordless sudo access to the init.d/nginx script. Also had to refactor the nginx configuration test as well since it was running (/usr/sbin/)nginx directly.