Improve tp-runner
tp gen: Create directories if needed.

Now the following is possible:
$ tp gen problem/solution.cpp

The result will be:
    problem/
    |__ solution.cpp
Fix some bugs
Fix cf-parser bug
Fix bug in read_config_file() function