fix for redmine #2635
Redmine #2675: /bin/bash is not available on all supported plaforms

The test script test/acceptance/08_commands/01_modules/003.cf.script
uses a /bin/bash shebang, and the Bash shell is not available on
stock HP-UX systems among others, preventing the test from running
properly. This commit changes bash to sh to conform with all the
other test scripts.
Merge pull request #665 from mvpel/redmine_2675

Redmine #2675: /bin/bash is not available on all supported plaforms
Merge pull request #662 from jeffali/fix/2635

fix for redmine #2635
Redmine #2573; correct mistake in placement of pragmas

The #pragma is not allowed inside functions, so move it outside.
Merge pull request #666 from kacfengine/hpuxFix

Redmine #2573; correct mistake in placement of pragmas
Take alternative workdir into account in test.
Merge pull request #667 from kacfengine/testFix

Take alternative workdir into account in test.
Wrong signature for mocked function

In logging_test.c we mock "sendto" to avoid sending data. In HPUX the compiler
is a little bit more strict than anticipated so it was complaining about the
type of the signature. It is interesting that this worked all over the place
and no other compiler complained even though it is evidently a failure.
Merge pull request #669 from cduclos/master

Fixing an evident compilation failure
Aggregate changes from 3.5 pre-releases