Fixes and little improvements

In the current version the unpacking of tar.gz files is not working. This commits should fix this and some little other issues too. Check my commit messages for further information.