The directory-based extraction can fail if the directory was renamed
before netgen was configured (e.g., CMake's ExternalProject will
generally rename the top-level directory to `src` for consistency).
If the directory name extraction failed, an empty string ended up in the
binary which causes runtime failures when trying to parse as an integer.