Check app_user in supervisor app script

* Move require of nginx into file.replace module