refine log message
more consistent logging
use strict!
check subdir before package.json
add test