Use "git show" to get the Dockerfile for deferring based on FROM

This gives roughly a full 2x speedup when doing `./build.sh --no-build --all`.
Merge pull request #240 from infosiftr/speedup-checking

Use "git show" to get the Dockerfile for deferring based on FROM