modified shell script to put logs in standard file locations