fixed output path
added auto-build for tools.