Fixes uninstallation from package template

Fixes  #1481
Merge branch 'master' of github.com:WoltLab/WCF