[#2158] Fix errno for getFolderContent on Windows for non existent folder.

Problem
-------------

On Windows, getFolderContent returns ENOTDIR when folder does not exists instead for ENOENT

Why we got this
---------------------

The windows code was doing a simple check to raise ENOTDIR for anything which is not a dir... not really a bug.
There was no test (specification) for this behavior.

Changes
------------

Update to convert to ENOTDIR only for EINVAL .. .as windows correctly raise ENOENT.

Added a test.

I have also migrated all manufacture to mk... and plan to do  this soon for the rest of the project.

version was already released.

How to test
---------------

reviewers @alibotean 

check first commit for code and test.

the second commit is just a replace all job.

Thanks!