[backends/c] Fix dispose of makefile path
[backends/c] More makefile heuristics