Fix #1
Fix crash when supplying custom output folder for generated source files