Take Windows paths into account

Since Windows makes use of backslashes in paths we have to take
that into account.

Fixes yeoman/yo#3.
Merge pull request #172 from kevva/windows-paths

Take Windows paths into account