Fix [bug951709] - Changed env vars HOSTNAME to APP_HOSTNAME