support options.dir, default to process.cwd()
Release 1.0.8