Do not initialize progressbar till the block is called
Escape object path
Clean pathname before embedding
More robust download command code
Make stat command more robust, updated tests