simplified createDirectory method

Additionally fixes problem with nested directories with mixed up slashes and backslashes, ie
`code-browser\app/config/packages/jones/web-artisan/\`