Updated init script to use environment variable so it can be run straight from wget