fix searching for "if" if "endif" already closed an if-statement
Replace Dots in imported Files

- adjust MungImportFromFile() to replace dots in file names too