Only php 5.4+ supports short array.

Thus `make gen` fails on machines with 5.3 and lower
such as Ubuntu 12.04 LTS

We can switch this to the previous array syntax,
with no loss of features.
Re-order `if` blocks to match language order

... for easier future maintenance.
Merge branch 'urda-fix-static-gen' into urda-local-http-fix

While we wait for the pull request,
let's bring in `make gen` fixes