fixing issue where no input/output breaks config

I didnt realize i was escaping too early. This will fix the issue with when not using inputs or outputs.