Fix path delimiters bug in windows environment

This will fix an issue with Windows incompatibility. It was because of incorrectly parsed paths in `baseDirRegex` due to different path delimiters: `/` instead of `\`. With this patch now everything works as expected.

Fixes #45 
Fixes #44