Bugfix: do also install single "userfiles" and not only directories.

Before this bugfix, every entry in extra/contao/userfiles was treated as a
directory. This commit changes this behaviour and treats files as files.
Some minor tweaks have also been added, like using sprintf() where forgotton.