Fix: bad checks for share and modules dirs
Merge pull request #1205 from ReAzem/preparedev-patch

Fix: bad checks for share and modules dirs