Check all output files are newer than input files before skipping a task

Resolved #79.