Fixed some variables (exepath and home) in the var module.
Fixed location of log file.