Build script improvements

* Convert some arguments to lowercase, avoiding comparisons with different cases
* Add long form synonyms for "-conf" and "-plat"