Better logging, sort script dirs, clean build dir