Update main.py

Strip trailing whitespace/newlines from paths read from config file.