Cleaning up finalize dependency rework for refclass dependency
Fix tracking of dependency files on commit.