script and nginx fixes

changed the regex values for nginx configuration.
fixed app name that was inconsistent throughout install scripts.