Fixes for lintian messages, small changes at the bash scripts for cross-compatibility etc.