Fixed baseDir undefined error.
Merge pull request #1 from danieldunderfelt/baseDir

Fixed baseDir undefined error.