Fix: bad checks for share and modules dirs