missing toLowerCase() call + missing  null test on plugin dependency

While working with this maven plugin on Ubuntu, I ran into a crash due to a missing  toLowerCase() on the $platform variable in updateConfig().

As i was working on a mobile app, independent from the errai framework, i didn't included the  "maven-war-plugin" .
In getWarSourceDir() (line 135) , the process crash if the plugin is missing (it tries to access a property on a null object).
I think the "maven-war-plugin" should not be mandatory in this plugin to let people use this plugin out of the errai framework.