Check that we have files to index.
More complex deploy script.

This script now updates an init script in the subs directory. This script will
then init all subs, to save the effort of looping over all of them and initing.