Fix variable typo
Change comment sign '#' by ';' to fix pombo-config errors on Windows
Fix few error with exceptions