Better code to tell if running from a WAR.