Fix Windows EOL issues

 * Instruct git to do EOL normalization on commit/checkout
 * Work around archetype:generate forcing OS line endings - treat shell scripts as binary and resolve variables at runtime.
I agree it's not elegant but at least works.

The possible solutions are:
  * Copy the shell script as is (treat as binary) and resolve needed options at runtime (current approach)
  * Let the archetype plugin replace the variables and strip lines at build time
  * Copy the shell script as is (treat as binary) and replace variables at build time.

I think the last item will result in more clean solution, I can try and see what happens. It wasn't obvious when choosing the runtime approach that the variable extraction would be so complex.