Fixed the log.sh script