Improved pre_build.py script.
Improved pre_build.py script.

- Now accepts the output file path as an argument.
- Uses format() with named template variables instead of % operator.
- Corrected exception type for detecting no previously existing output file.

flit/modular,flit/modular,flit/modular,flit/modular,flit/modular