Allow to run the program from any path.

Get the root of data path from the path of the main.py file.