Fixing the log directory path, fixing bug in shared file