Fix for Dockerfile/tar context race condition

This fixes #37 and fixes #35.