Fix tgz app upload with hidden files

This is not ready to be merged in yet.