add the options for packages to remove file or folders in their install scripts

I came across the need to remove files or folders during installation due to a mod including the `.git` directory in the distributed zip.

Having the `.git` folder in the GameData confuses git and breaks the uninstall command since git tries to handle it as a submodule