use process.env.PWD instead of cwd() for tests
build: change log header
build: move summary handler aside