smb.php don't work with lot of files or folders if "Windows OS"

better fix
Merge pull request #534 from Ellega/smb.refix

smb.php don't work with lot of files or folders if "Windows OS" (Better Fix)