added scriptdir to the log file path in the shell scripts