Fix docker cache detection inconsistency. Fixes #33.