[Build] Fix bugs in build script

 - no `++` operator in Python
 - can't concatinate a string and an integer