Merge log->logs
Use variable for log file
Set master and slave correctly
remove set +x