Fix SetVariableValue and ExecuteFile
Cleaner logging code