Build shell script, add logging