make build/rebuild behavior match node-gyp exactly
better testing and error output - closes #16