tests/util: Add tests for the substitute_file function
pfx_tree: Add height function
src/util: Substitute file correctly reads and writes without substitution