Added log message in case the SourceDir.var and BuildDir.var files can't be written or read.