Fixes to path being written to retroarch.cfg template
Added exception and error handling to default.py and other fixes