Work around for archetype:generate forcing OS line endings.

When processing template resources (filtered="true") the archetype plugin forces all content to use the current OS specific line endings. Treat shell scripts as binary files so their line endings are preserved, saving any variables in a helper text file.

Shell scripts don't work when they contain Windows style line breaks, so it is important to preserve the original line breaks even when building on Windows.