Fixed #1

The baseDir was set from an undefined variable which caused an error.
Merge pull request #4 from nsrosenqvist/master

Fixed #1