refactor and additional checks

- refactor
- added new checks, doesn't try to encode anymore if the avisynth
scripts are missing