Speed up fig up

See PR on official repo https://github.com/docker/fig/pull/586 for lots of details.

I'll have to manually merge this