Fix [bug951709] - Changed HOSTNAME to APP_HOSTNAME in env and related files