Small check if files

Noticed that script stopped when a project only had one type of extension files, for example only admin files and no site files. A simple check for $files seems to solve that so packages are built also when only having one type.