Update init script

Fix directory path issue we encountered on sandbox, also set uwsgi to run in master mode, and made it easier to config the number of worker processes started