Apache Forrest code fix (bug FOR-47, FOR-48)

code fix
by
JT
(fixes bug FOR-47, FOR-48)

:

Fix bugs in forrest.bat|sh scripts encountered when used in
odd environments (perl and Win9x).