Fix #220: Modified check originally from #207 to more accurately target syntax errors
1.0.6