Fix error thrown on resolving BaseDirectory
Merge pull request #3 from Icehunter/basedirectory-fix

Fix error thrown on resolving BaseDirectory