[director] Check for available space before uploading archives

- Check for available space before uploading deployments, releases and stemcells.
- Provide better error messages when extracting packages, jobs, releases and stemcells.
- Use common SH and add test

Fixes #46398849 and #45964327