Changing detect script to properly determine if this is a TomEE application