fixed incorrect command and ownership of the log file for both supported operating systems