Apply some fixes to the filestorage package.

While small, these fixes are backward-incompatible.  However, they will impact only one bit of code in the core juju repo (in state/backups.go).