Update main.py

Strip trailing whitespace/newlines from paths read from config file.
Merge pull request #1 from ttscoff/master

Strip newlines from config paths