Test dependency files only depend on headers (ref #24)
Simplified dependency file generation for tests using temp file (ref #24)