Various whitespace fixes

- Don't mix up tabs and spaces, this will lead to unreadable code
- Removed trailing whitespace

No functional changes have been introduced, it's just a little cleaner this way.

I only looked at the perl/python/ruby scripts in the distribution, possibly there are more mixups of tabs and spaces in the code base.