refactor ProgramLoader, RunProcess to remove static state

**please review**
Please add javadoc to FileUtil.
Once for the entire class, and for each method individually. I have no idea why it is needed here.