Made config files work on mono
- Use the same hack we use everywhere else to get the "correct"
  application base when running on mono.
Updating build.sh based on KRuntime changes