bugs fixed, files & directories check added (wildkards are not supported)