Refactored out find_cache()

Created find_cache() which calculates the cache for the given
parameters.
Added special handling for WORKDIR

Create a Dockerfile just for WORKDIR entries and then check them against
the buildcache.