add baseDir option
Merge pull request #1 from evindor/master

Add baseDir option.