Reduce complexity by using relative paths to find config and other folders

As a replacement to the path.py file in the main directory