fix the run.py to check if config file is actull file, before doing any other tricks