bugfix: intermediate files were not appropriately being treated as up-to-date
added log messages hinting at reasons for being out of date
added testcase for handling of nonexistant intermediate files