Move to before_deploy

To only run when deploys are run
Flatten files in tarball