Fixed the progress bar width calculation

This was previously hard-coded at a width of 80 characters,
which would cause tests to fail when they were run on wider terminals
Merge pull request #22 from duncan3dc/progress-bar-test-width

Fixed the progress bar width calculation