Test dependency files only depend on headers (ref #16)
Use temp file to simplify generating dependency files for tests (ref #16)